class OuterClass{
    public int a1=1;
    private int a2=2;
    public static int a3=3;
    public void teat(){
        class InnerClass{
            public int a4=4;
            private int a5=5;
            public int a6=6;
            public void fun(){
                System.out.println(a1);
                System.out.println(a2);
                System.out.println(a3);
                System.out.println(a4);
                System.out.println(a5);
                System.out.println(a6);
            }
        }
      InnerClass innerClass=new InnerClass();
        innerClass.fun();



    }
}
public class Test {
    public static void main(String[] args) {
        OuterClass outerClass=new OuterClass();
        outerClass.teat();
    }
}
